﻿CREATE TRIGGER BoardAttachments_Tracking_Delete
ON [dbo].[BoardAttachments] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.BoardAttachments_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.BoardAttachments_Tracking s JOIN DELETED i
    ON s.BoardAttachmentID = i.BoardAttachmentID
END











